package com.luom.fsp.job.once;

import com.luom.fsp.job.cycle.SalesStatistic;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Slf4j
@Component
public class
SalesStatisticOnce {

    @Resource
    private SalesStatistic salesStatistic;

    @PostConstruct
    public void salesStatistic() {
        salesStatistic.synchronizeOrders();
    }

}
